Skip to main content

mobileCurrentLocale

Type​

function

Summary​

Returns the currently configured locale.

Syntax​

mobileCurrentLocale()

Description​

Use the mobileCurrentLocale function to discover what language the device is currently set to use. This allows you to set up your app for that language.

Examples​

mobileCurrentLocale()
if mobileCurrentLocale() is "en_US" then 
updateDisplay "english"
end if

Value​

NameTypeDescription

return

The mobileCurrentLocale function returns the currently configured locale tag. For example "en_US".

function: mobilePreferredLanguages

Compatibility and Support​

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?